package co.com.ticci.autolavado.vo;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the ticci_empleado database table.
 * 
 */
@Embeddable
public class TicciEmpleadoPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	@Column(name="EMPL_CONS")
	private int emplCons;

	@Column(name="EMPR_CONS")
	private int emprCons;

	public TicciEmpleadoPK() {
	}
	public int getEmplCons() {
		return this.emplCons;
	}
	public void setEmplCons(int emplCons) {
		this.emplCons = emplCons;
	}
	public int getEmprCons() {
		return this.emprCons;
	}
	public void setEmprCons(int emprCons) {
		this.emprCons = emprCons;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof TicciEmpleadoPK)) {
			return false;
		}
		TicciEmpleadoPK castOther = (TicciEmpleadoPK)other;
		return 
			(this.emplCons == castOther.emplCons)
			&& (this.emprCons == castOther.emprCons);
	}

	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.emplCons;
		hash = hash * prime + this.emprCons;
		
		return hash;
	}
}